package com.tscnd.core.dao.role; 

import java.util.Set;

import org.springframework.stereotype.Repository;

import com.tscnd.core.dao.BaseDao;
import com.tscnd.core.entity.role.Role;

@Repository("roleDao")
public interface IRoleDao extends  BaseDao<Role, String>{
	/**
	 * 根据用户名查询角色信息
	 * @param username
	 * @return
	 * @throws Exception
	 */
	public Set<Role>findUserByRole(String username)throws Exception;
}
